package com.sun.androidexerciseproject.function.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

public class ThreeActivity extends AppCompatActivity {

    @Override
    public void onBackPressed() {
        setResult(-2000, new Intent(this, FirstActivity.class));
        super.onBackPressed();
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);
    }

    @Override
    protected void onResume() {
        super.onResume();
//        startActivity(new Intent(this, FirstActivity.class));
    }
}
